home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2007 December
/
PCWKCD1207B.iso
/
Blogowanie poza sfera
/
Flock 0.9.1.3 stable
/
flock-0.9.1.3.en-US.win32.exe
/
flock
/
res
/
detect
/
blogger.xml
next >
Wrap
Extensible Markup Language
|
2007-10-12
|
3KB
|
114 lines
<?xml version="1.0" encoding="utf-8"?>
<service name="blogger"
version="$Id: blogger.xml 13478 2007-07-19 19:45:26Z chris $"
xmlns="http://www.flock.com/web-detective#">
<detect type="signup">
<url domain="google.com"><path contains="/accounts/NewAccount"/></url>
<form>
<xpath name="username" extract="value">
<![CDATA[//input[@name="Email"]]]>
</xpath>
<xpath name="password" extract="value">
<![CDATA[//input[@type="password"][@name="PasswdAgain"]]]>
</xpath>
</form>
</detect>
<detect type="login">
<url><host domain="google.com"/></url>
<form>
<xpath name="username" extract="value">
<![CDATA[//input[@id="Email"]]]>
</xpath>
<xpath name="password" extract="value">
<![CDATA[//input[@id="Passwd"]]]>
</xpath>
</form>
</detect>
<!-- Old Blogger -->
<detect type="loggedin">
<conditions>
<url domain="blogger.com"/>
<document>
<xpath><![CDATA[//div[@id="header"]/div[@id="h2"]/div[@id="h3"]/p[@id="user"]]]></xpath>
</document>
</conditions>
</detect>
<!-- Blogger beta -->
<detect type="loggedin">
<conditions>
<url domain="blogger.com"/>
<document>
<xpath><![CDATA[//div[@id="header"]/div[@id="h2"]/div[@id="h3"]/div[@id="global-info"]]]></xpath>
</document>
</conditions>
</detect>
<detect type="accountinfo">
<conditions>
<url domain="blogger.com"/>
<xpath name="accountid">
<![CDATA[//div[@id='header']//div[@id='global-info']/span/text()]]>
</xpath>
</conditions>
<results>
<xpath name="accountid">
<![CDATA[//div[@id='header']//div[@id='global-info']/span/text()]]>
</xpath>
<xpath name="avatarURL" extract="attribute:src">
<![CDATA[//img[@alt='My Photo']]]>
</xpath>
</results>
</detect>
<!--
<detect type="loggedin">
<conditions>
<url domain="google.com"><path contains="accounts"/></url>
<document>
<xpath><![CDATA[//table[1]/tbody/tr[1]/td/font/a[4]/text()[contains(.,"Sign Out")]]]></xpath>
</document>
</conditions>
</detect>
-->
<detect type="loggedin">
<conditions>
<url domain="blogger.com"></url>
<document>
<regexp re1="username">
<![CDATA[/<a href="\/logout.g">/]]>
</regexp>
</document>
</conditions>
</detect>
<detect type="accountinfo">
<conditions>
<url domain="google.com"><path contains="accounts"/></url>
<document>
<xpath name="accountid">
<![CDATA[//table[1]/tbody/tr[1]/td/font/b/text()]]>
</xpath>
</document>
</conditions>
</detect>
<detect type="changepassword">
<url domain="google.com"><path contains="accounts"/></url>
<document>
<regexp re1="username">
<![CDATA[/getUserName\("([^"]*)"\)/]]>
</regexp>
</document>
<form>
<xpath name="password" extract="value">
<![CDATA[//input[@type="password"][@name="PasswdAgain"]]]>
</xpath>
</form>
</detect>
</service>